package model

import (
	mssql "github.com/denisenkom/go-mssqldb"
	"time"
)

// 申请社团数据表
type Apply_CreateClub struct {
	ID        int       `gorm:"primary-key;column:id"` //社团申请记录编号
	Cid       int       `gorm:"not null;column:Cid"`   //申请人编号 (外键：uid）
	Uid       int       `gorm:"not null;column:Uid"`
	ApplyTime time.Time `gorm:"not null;column:ApplyTime"` //申请时间
	State     int       `gorm:"not null;column:State"`     //申请状态
	File      int       `gorm:"column:File"`
	Remark1   string    `gorm:"column:remark1;"`
	Remark2   string    `gorm:"column:remark2;"`
}

// 展示给管理员端
type CreateClubApply struct {
	ID                int           `json:"id"`
	ApplyID           int           `json:"apply_id"`
	ApplyTime         time.Time     `json:"applyTime"`
	CID               int           `json:"cid"`
	CName             string        `json:"cname"`
	File              AllFile       `json:"file"`
	ApprovalState     int           `json:"approval_state"`
	Campus            int           `json:"campus"`
	Type              int           `json:"type"`
	AIM               mssql.VarChar `json:"aim"`
	UNIT              mssql.VarChar `json:"unit"`
	TeacherID         int           `json:"TeacherID"` //业务指导老师
	TeacherName       mssql.VarChar `json:"TeacherName"`
	TeacherPhone      mssql.VarChar `json:"TeacherPhone"`
	AdminTeacherID    int           `jsongorm:"AdminTeacherID"`
	AdminTeacherName  mssql.VarChar `json:"AdminTeacherName"`
	AdminTeacherPhone mssql.VarChar `json:"AdminTeacherPhone"`
	LeaderID          int           `json:"uid"` //社团负责人
	LeaderName        mssql.VarChar `json:"LeaderName"`
	Mailbox           mssql.VarChar `json:"Mailbox"`      //负责人邮箱
	Phone             mssql.VarChar `json:"Phone"`        //负责人电话
	Introduction      mssql.VarChar `json:"Introduction"` //社团简介
	Attached          string        `json:"File"`
}
